/**
 * 
 */
package com.jilujia.domain.blog;

import com.jilujia.framework.StringValuedEnum;

public enum BlogTypeEnum implements StringValuedEnum {

	ORIGINAL("original"), POSTED("posted");

	private final String label;

	/**
	 * 
	 * @param label
	 */
	BlogTypeEnum(final String label) {
		this.label = label;
	}

	public String getName() {
		return name();
	}

	public String getLabel() {
		return label;
	}

	public String getDesc() {
		return null;
	}

	public static BlogTypeEnum toValue(String value) {
		if (null == value || "".equals(value)) {
			return null;
		}
		return valueOf(value);
	}
}
